{extend name="admin@public/base" /}
{block name="main-content"}
	<div class="page-content">
       <div class="row maintop">
			<div class="col-xs-5 col-sm-2  margintop5">
				<a href="{:url('cate_list_add')}">
					<button class="btn btn-sm btn-danger">
						<i class="ace-icon fa fa-bolt bigger-110"></i>
						添加分类
					</button>
				</a>
			</div>
		</div>
            
		<div class="row">
			<div class="col-xs-12">
				<div>
					<form id="alldel" name="alldel" method="post" action="{:url('admin/Goods/cate_list_del')}" >
						<input name="p" id="p" value="{:input('p',1)}" type="hidden" />
						<div class="table-responsive">
							<table class="table table-striped table-bordered table-hover" id="dynamic-table">
								<thead>
								<tr>
									<th class="hidden-xs center" width="5%">
										<label class="pos-rel">
											<input type="checkbox" class="ace"  id='chkAll' onclick='CheckAll(this.form)' value="全选"/>
											<span class="lbl"></span>															</label>
                                    </th>
                                    <th width="5%"></th>
                                    <th>分类名称</th>
                                    <th class="hidden-xs center"  width="5%">ID</th>
									<th class="hidden-xs"   width="5%">排序</th>
									
									
							        <th class="hidden-xs"  width="5%">审核</th>
									<th style="border-right:#CCC solid 1px;"  width="10%">操作</th>
								</tr>
								</thead>
                              <tbody id="ajax-data">
                                  {foreach name="cate_list" item="v"}
									<tr id="{$pid}-{$v.id}">
                                    
                                    
                                    
                                    
                                         <td class="hidden-xs" align="center">
			<label class="pos-rel">
				<input name='n_id[]' id="navid" class="ace"  type='checkbox' value='{$v.id}'>
				<span class="lbl"></span>
			</label>
		</td>
        
        <td><a data-id="{$v.id}" data-level="{$v.level}" href="{:url('admin/Goods/cate_list')}" style="cursor:pointer;" class="rule-list"><span class="fa fa-plus blue"></span></a></td>
        <td class="hidden-xs" style='padding-left:{if condition="$v.leftpin neq 0"}{$v.leftpin}px{/if}' ><a href="{:url('admin/Goods/cate_list_edit',array('n_id'=>$v['id']))}" title="{$v.cate_name}">{$v.lefthtml}{$v.cate_name}</a></td>
        <td class="hidden-xs" align="center">{$v.id}</td>
		<td class="hidden-xs center"><input name="{$v.id}" value="{$v.listorder|default=50}" class="list_order news_order"/></td>
		
		
		 
 
		<td class="hidden-xs">
			{if condition="$v['cate_open'] eq 1"}
				<a class="red state-btn" href="{:url('admin/Goods/cate_list_state')}" data-id="{$v.id}" title="已审">
					<div><button class="btn btn-minier btn-yellow">已审</button></div>
				</a>
				{else/}
				<a class="red state-btn" href="{:url('admin/Goods/cate_list_state')}" data-id="{$v.id}" title="未审">
					<div><button class="btn btn-minier btn-danger">未审</button></div>
				</a>
			{/if}
		</td>
		 
		<td>
			<div class="hidden-sm hidden-xs action-buttons">
                <a class="blue" href="{:url('admin/Goods/cate_list_add',array('pid'=>$v['id']))}"  title="添加子类">
													<i class="ace-icon fa fa-plus-circle bigger-130"></i>
				</a>
				<a class="green" href="{:url('admin/Goods/cate_list_edit',array('n_id'=>$v['id']))}" data-toggle="tooltip" title="修改">
					<i class="ace-icon fa fa-pencil bigger-130"></i>
				</a>
				<a class="red confirm-rst-url-btn" data-info="你确定要删除到回收站吗？" href="{:url('admin/Goods/cate_list_del',array('n_id'=>$v['id'],'p'=>input('p',1)))}" title="删除" data-toggle="tooltip">
					<i class="ace-icon fa fa-trash-o bigger-130"></i>
				</a>
			</div>
			<div class="hidden-md hidden-lg">
				<div class="inline position-relative">
					<button class="btn btn-minier btn-primary dropdown-toggle" data-toggle="dropdown" data-position="auto">
						<i class="ace-icon fa fa-cog icon-only bigger-110"></i>
					</button>
					<ul class="dropdown-menu dropdown-only-icon dropdown-yellow dropdown-menu-right dropdown-caret dropdown-close">
                         <li>	
						   <a href="{:url('admin/Goods/cate_list_add',array('pid'=>$v['id']))}"  class="tooltip-success" data-rel="tooltip" title="" data-original-title="添加子类">
																		<span class="green">
																			<i class="ace-icon fa fa-plus-circle bigger-120"></i>
																		</span>
						    </a>						
						 </li>
                    
						<li>
							<a href="{:url('admin/Goods/cate_list_edit',array('n_id'=>$v['id']))}" class="tooltip-success" data-rel="tooltip" title="" data-original-title="修改">
											<span class="green">
												<i class="ace-icon fa fa-pencil-square-o bigger-120"></i>
											</span>
							</a>
						</li>

						<li>
							<a href="{:url('admin/Goods/cate_list_del',array('n_id'=>$v['id'],'p'=>input('p',1)))}" data-info="你确定要删除吗？" class="tooltip-error confirm-rst-url-btn" data-rel="tooltip" title="回收站" data-original-title="回收站">
											<span class="red">
												<i class="ace-icon fa fa-trash-o bigger-120"></i>
											</span>
							</a>
						</li>
					</ul>
				</div>
			</div>
		</td>
        
        
                                       
                                       
                                       
                                    </tr> 
                                  {/foreach}
								<tr>
	<td align="left" class="hidden-xs center"><button id="btnsubmit" class="btn btn-white btn-yellow btn-sm hidden-xs">删</button> </td>
	<td colspan="2" align="left"class="hidden-lg hidden-md hidden-sm"> </td>
	<td align="left" class="hidden-xs center"><button  id="btnorder" href="{:url('admin/Goods/cate_list_order')}" class="btn btn-white btn-yellow btn-sm">排序</button></td>
	<td colspan="7" align="right" class="hidden-xs"> </td>
</tr>
								</tbody>  
                                 
							</table>
						</div>
					</form>
				</div>
			</div>
		</div>
	</div><!-- /.page-content -->
{/block}
{block name="scripts"}
	 
{/block}
